﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Extend.Pool
{
    public abstract class PoolBase
    {
        public string Name { get; set; }

        /// <summary>
        /// 容量（池允许缓存的最大数量）
        /// </summary>
        public int Capacity;

        /// <summary>
        /// 实例化的数量
        /// </summary>
        public virtual int Count { get; protected set; }

        /// <summary>
        /// 可用数量
        /// </summary>
        public virtual int CountUnUsed { get; protected set; }

        /// <summary>
        /// 销毁可用
        /// </summary>
        public abstract void ReleaseUnused();
    }
}

